package com.ynny.chapter14.service;

import com.ynny.chapter14.entity.Users;
import com.ynny.chapter14.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersServiceImpl implements UsersService{
    @Autowired
    private UsersMapper usersMapper;
    @Override
    public Users login(String number, String password) {
        return usersMapper.selectUserByUsernameAndPassword(number,password);

    }

    @Override
    public List<Users> findAllaaa(Users users) {
        return usersMapper.selectAll();
    }
}
